/// 响应主体内容
class QueryPinResponseDto {
  /// PIN码是否存在
  final bool? binExists;
  /// 若binExists为false时，验证码有值（加密过，需前端解密）
  final String? verifyCode;

  QueryPinResponseDto({
    this.binExists,
    this.verifyCode,
  });

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    if (binExists != null) data['binExists'] = binExists;
    if (verifyCode != null) data['verifyCode'] = verifyCode;
    return data;
  }

  factory QueryPinResponseDto.fromJson(Map<String, dynamic> json) {
    return QueryPinResponseDto(
      binExists: json['binExists'],
      verifyCode: json['verifyCode'],
    );
  }
}